<template>
  <div>
    <samp v-for="item in subjectTypeData" :key="item.code">
      <samp  v-if="item.code==subjectTypeVal">
        <el-tag type="primary" v-if="item.code=='ZC'"> {{item.name}}</el-tag>
        <el-tag type="danger" v-else-if="item.code=='FZ'"> {{item.name}}</el-tag>
        <el-tag type="warning" v-else-if="item.code=='SY'"> {{item.name}}</el-tag>
        <el-tag type="success" v-else> {{item.name}}</el-tag>
      </samp>
    </samp>

  </div>
</template>

<script setup>
import useUserStore from "@/store/modules/user.js";

const props = defineProps({
  subjectTypeVal: {
    type: String,
    default: ""
  },
});
 const subjectTypeData = useUserStore().enumData.FinSubjectType;

</script>